package com.by.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author :LYJ
 * @version : 1.0
 * @date : 2025/3/5 14:58
 * @desc : 采购订单表基础信息-合同信息
 * @since : JDK17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("采购订单表-基础信息-合同信息")
@Table(name = "erp_purchase_order")
public class ErpPurchaseOrder {
    @ApiModelProperty("表id")
    private Integer id;
    @ApiModelProperty("采购单号")
    private String sn;
    @ApiModelProperty("销售单号")
    private String salesOrderSn;
    @ApiModelProperty("客户ID")
    private Integer customerId;
    @ApiModelProperty("销售人员ID")
    private Integer salesId;
    @ApiModelProperty("签订日期")
    private Integer signingDate;
    @ApiModelProperty("订单类型: [CI-信保订单,SELF-自己抬头的出口订单,TP-第三方]")
    private String type;
    @ApiModelProperty("签订地点")
    private String signLocation;
    @ApiModelProperty("订单描述")
    private String desc;
    @ApiModelProperty("合同总价")
    private BigDecimal totalContractPrice;
    @ApiModelProperty("交货时间(天)")
    private Integer deliveryTime;
    @ApiModelProperty("具体交货日期")
    private Integer specificDeliveryDate;
    @ApiModelProperty("付款条件")
    private String termsOfPayment;
    @ApiModelProperty("交货地点")
    private String placeOfDelivery;
    @ApiModelProperty("技术要求")
    private String techRequire;
    @ApiModelProperty("产品铸字标识")
    private String productCastLogo;
    @ApiModelProperty("产品表面处理要求")
    private String productStrRequire;
    @ApiModelProperty("产品包装要求")
    private String productPackRequrie;
    @ApiModelProperty("状态: [0-待确认,1-生产中,2-质量检验,3-待结算,4-待发货,5-待开票,6-售后中,7-待确认,8-检验不合格,9-已驳回]")
    private Boolean status;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("是否投诉：[0-未投诉,1-投诉]")
    private Boolean isComplaint;
    @ApiModelProperty("是否延期：[0-未延期,1-待确认,2-已延期]")
    private Boolean isPostpone;
    @ApiModelProperty("是否生成对账单：[0-未生成, 1-已生成]")
    private Boolean isGenStatement;
    @ApiModelProperty("进仓通知单")
    private String warehouseEntryNotice;
    @ApiModelProperty("客户公司名称")
    private String customerCompanyName;
    @ApiModelProperty("所属销售")
    private Integer salesAffiliation;
    @ApiModelProperty("节点名称")
    private String nodeName;
    @ApiModelProperty("节点金额比")
    private String nodeAmountRatio;
    @ApiModelProperty("合同")
    private String contract;
    @ApiModelProperty("合同附件")
    private String annex;
    @ApiModelProperty("是否回传了合同")
    private Boolean isReturn;
    @ApiModelProperty("创建时间")
    private String createTime;
    @ApiModelProperty("更新时间")
    private String updateTime;
    @ApiModelProperty("删除时间")
    private String deleteTime;
}
